<?php
class Database{
     
    protected function connectDatabase(){
        $link = mysql_connect('localhost', 'root', '') or die(mysql_error()); //CONNECT TO DATABASE
        $db_selected = mysql_select_db('mydatabase', $link) or die(mysql_error()); //SELECT DATABASE   
    }
}
?>